projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebac2cf
)
rockchip: dwmmc: use max-frequency when OF_PLATDATA enabled
author
Kever Yang
<
[email protected]
>
Wed, 14 Jun 2017 08:31:46 +0000
(16:31 +0800)
committer
Philipp Tomsich
<
[email protected]
>
Tue, 11 Jul 2017 10:13:47 +0000
(12:13 +0200)
Since the 'clock-freq-min-max' is deprecated, we use max-frequency for
all rockchip SoC dwmmc controller.
Signed-off-by: Kever Yang <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
Reviewed-by: Philipp Tomsich <
[email protected]
>
drivers/mmc/rockchip_dw_mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/rockchip_dw_mmc.c
b/drivers/mmc/rockchip_dw_mmc.c
index 24754b7b120e38a730c34dc5cf6d5cdb022d78ee..d5b05b0b5832bce6b9e95f0133873ae8bb2a6d00 100644
(file)
--- a/
drivers/mmc/rockchip_dw_mmc.c
+++ b/
drivers/mmc/rockchip_dw_mmc.c
@@
-115,7
+115,8
@@
static int rockchip_dwmmc_probe(struct udevice *dev)
host->dev_index = 0;
priv->fifo_depth = dtplat->fifo_depth;
priv->fifo_mode = 0;
- memcpy(priv->minmax, dtplat->clock_freq_min_max, sizeof(priv->minmax));
+ priv->minmax[0] = 400000; /* 400 kHz */
+ priv->minmax[1] = dtplat->max_frequency;
ret = clk_get_by_index_platdata(dev, 0, dtplat->clocks, &priv->clk);
if (ret < 0)